import Request from '@/utils/request-util';

/**
 * 组配置api
 *
 * @author cancan
 * @date 2025/03/08 10:06
 */
export class DeviceSprayCameraScheduleConfigApi {
  static findPage(params) {
    return Request.getAndLoadData('/deviceSprayCameraScheduleConfig/page', params);
  }
  /**
   * 新增
   *
   * @author cancan
   * @date 2025/03/08 10:06
   */
  static add(params) {
    return Request.post('/deviceSprayCameraScheduleConfig/add', params);
  }

  /**
   * 修改
   *
   * @author cancan
   * @date 2025/03/08 10:06
   */
  static edit(params) {
    return Request.post('/deviceSprayCameraScheduleConfig/edit', params);
  }

  /**
   * 删除
   *
   * @author cancan
   * @date 2025/03/08 10:06
   */
  static delete(params) {
    return Request.post('/deviceSprayCameraScheduleConfig/delete', params);
  }

  /**
   * 详情
   *
   * @author cancan
   * @date 2025/03/08 10:06
   */
  static detail(params) {
    return Request.getAndLoadData('/deviceSprayCameraScheduleConfig/detail', params);
  }

  static configByOxtallId(oxtallId) {
    return Request.getAndLoadData('/deviceSprayCameraScheduleConfig/configByOxtallId', {"oxtallId" : oxtallId});
  }

  static disableConfig(params) {
    return Request.post('/deviceSprayCameraScheduleConfig/disableConfig', params);
  }

}
